package model;

public class Koperasi {

    private String idkoperasi;
    private String namakoperasi;
    private String alamatkoperasi;
    private String deskripsikoperasi;
    private String notelpkoperasi;
    //for validation error messages
    private String namakoperasiError;
    private String alamatkoperasiError;
    private String deskripsikoperasiError;
    private String notelpkoperasiError;
    
    private boolean isValid;
    private String kota;
    //this is for action means edit or submit or delete or update
    private String actionk;
    //construtor.it is invoked when we run jsp page.
    //so first time no values will display in jsp page

    public Koperasi() {

        idkoperasi = "";
        namakoperasi = "";
        alamatkoperasi = "";
        deskripsikoperasi = "";
        notelpkoperasi = "";

        namakoperasiError = "";
        alamatkoperasiError = "";
        deskripsikoperasiError = "";
        notelpkoperasiError = "";
        kota="";
        actionk = "Insert Koperasi";
    
    }

   
    public boolean getIsValid() {
        return isValid;
    }

    public void setIsValid(boolean isValid) {
        this.isValid = isValid;
    }


    public String getidkoperasi() {
        return idkoperasi;
    }

    public void setidkoperasi(String idkoperasi) {
        this.idkoperasi = idkoperasi;
    }

    public String getnamakoperasi() {
        return namakoperasi;
    }

    public void setnamakoperasi(String namakoperasi) {
        this.namakoperasi = namakoperasi;
    }

    public String getalamatkoperasi() {
        return alamatkoperasi;
    }

    public void setalamatkoperasi(String alamatkoperasi) {
        this.alamatkoperasi = alamatkoperasi;
    }

    public String getdeskripsikoperasi() {
        return deskripsikoperasi;
    }

    public void setdeskripsikoperasi(String deskripsikoperasi) {
        this.deskripsikoperasi = deskripsikoperasi;
    }

    public String getnotelpkoperasi() {
        return notelpkoperasi;
    }

    public void setnotelpkoperasi(String notelpkoperasi) {
        this.notelpkoperasi = notelpkoperasi;
    }

    public String getnamakoperasiError() {
        return namakoperasiError;
    }

    public void setnamakoperasiError(String namakoperasiError) {
        this.namakoperasiError = namakoperasiError;
    }

    public String getalamatkoperasiError() {
        return alamatkoperasiError;
    }

    public void setalamatkoperasiError(String alamatkoperasiError) {
        this.alamatkoperasiError = alamatkoperasiError;
    }

    public String getdeskripsikoperasiError() {
        return deskripsikoperasiError;
    }

    public void setdeskripsikoperasiError(String deskripsikoperasiError) {
        this.deskripsikoperasiError = deskripsikoperasiError;
    }

    public String getnotelpkoperasiError() {
        return notelpkoperasiError;
    }

    public void setnotelpkoperasiError(String notelpkoperasiError) {
        this.notelpkoperasiError = notelpkoperasiError;
    }
    
    public String getActionk() {
        return actionk;
    }

    
    public void setActionk(String actionk) {
        this.actionk = actionk;
    }
 
    public String getKota() {
        return kota;
    }

    public void setKota(String kota) {
        this.kota = kota;
    }
}
